home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Macintosh Tracker 1.20 / source / Tracker Client Folder / CStopButton.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-16  |  509 b   |  25 lines  |  [TEXT/KAHL]

  1. /* CStopButton.c */
  2.  
  3. #include "CStopButton.h"
  4. #include "LocationConstants.h"
  5. #include "CWindow.h"
  6. #include "CMyDocument.h"
  7.  
  8.  
  9. void                CStopButton::IStopButton(CMyDocument* TheDocument, CWindow* TheWindow)
  10.     {
  11.         LongPoint            LocalStart,LocalExtent;
  12.  
  13.         Document = TheDocument;
  14.         GetRect(StopIconLocID,&LocalStart,&LocalExtent);
  15.         IPicture(LocalStart,LocalExtent,NormalStopPictID,HilitedStopPictID,
  16.             0,0,TheWindow,TheWindow);
  17.     }
  18.  
  19.  
  20. MyBoolean        CStopButton::DoThang(void)
  21.     {
  22.         Document->DoStop();
  23.         return False;
  24.     }
  25.